$(function() {
	$('#loginForm').validate({
		rules : {
			accountCode : 'required',
			password : 'required'
		},
		messages : {
			accountCode : {
				required : "请输入用户名"
			},
			password : {
				required : "请输入密码"
			}
		},
		submitHandler : function(form) {
			$('button[type=submit]',$(form)).addClass('disabled').text('正在登录 ...');
			$('.error-group').empty();
			form.submit();
		}
	});
});